<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Registration</title>
</head>
<body>
	<script type='text/javascript'>
	
		function Register(name, surname, email, city, job,bday, password,gender){
			
								
				window.location = "/swimtwoWEB/RegisterServlet?name=" + name.value + "surname=" + surname.value + "email=" + email.value + "city=" + city.value + "job=" + job.value + "bday=" + bday.value+ "password=" + password.value+ "gender=" + gender.value;		
		}
		
	</script>
	
		<h1>Well Come To Registration Web Site </h1><br>
		<a href="Main.jsp">Home page</a> click this to go back to Home page 
		<p> Please fill the following form : </p>
		
		<table border="0" cellpadding="1" cellspacing="2" width="100%">
			
			<TBODY>
			
			<tr>
				<td align="left" width="0%">Name: </td>
				<td align="left" width="100%"><INPUT id="name" name="name" type="" value=""></td>				
			</tr>			
			<tr>
				<td align="left" width="0%">Surname: </td>
				<td align="left" width="100%"><INPUT id="surname" name="surname" type="" value=""></td>	
			</tr>		
			<tr>
				<td align="left" width="0%">E_mail: </td>
				<td align="left" width="100%"><INPUT id="email" name="email" type="" value=""></td>
			</tr>
			<tr>
				<td align="left" width="0%">Gender: </td>
				<td align="left" width="100%"><INPUT id="gender" name="gender" type="" value=""></td>
			</tr>
			<tr>
				<td align="left" width="0%">City: </td>
				<td align="left" width="100%"><INPUT id="city" name="city" type="" value=""></td>
			</tr>
			<tr>
				<td align="left" width="0%">Job: </td>
				<td align="left" width="100%"><INPUT id="job" name="job" type="" value=""></td>
			</tr>
			<tr>
				<td align="left" width="0%">Date Of Birth: </td>
				<td align="left" width="100%"><INPUT id="bday" name="bday" type="" value=""></td>
			</tr>
			<tr>
				<td align="left" width="0%">Password: </td>
				<td align="left" width="100%"><INPUT id="password" name="password" type="" value=""></td>
			</tr>
			<tr>
				<td align="left" width="0%"></td>
				<td align="left" width="50%"><input type="submit" value="Submit" onClick="Register(document.getElementById('name'),document.getElementById('surname'), document.getElementById('email'), document.getElementById('city'), document.getElementById('job'),  document.getElementById('bday'), document.getElementById('password'), document.getElementById('gender'))"></td>
			</tr>
			</TBODY>
			
		</table>	

</body>
</html>